import frontLayout from '@/layout/front/index';
export default [{
	path: '/front',
	name: 'Front',
	redirect: '/front/index',
	meta: { title: '首页' },
	component: frontLayout,
	children: [{
		path: 'index',
		name: 'FrontIndex',
		meta: { title: '首页' },
		component: () => import('@/views/front/index/index')
	}, {
		path: 'topic',
		name: 'FrontTopic',
		redirect: '/front/topic/',
		meta: { title: '我的课题' },
		component: () => import('@/views/front/topic/index'),
		children: [{
			path: '',
			name: 'FrontTopicList',
			component: () => import('@/views/front/topic/list')
		}, {
			path: 'form',
			name: 'FrontTopicForm',
			meta: { title: '课题' },
			component: () => import('@/views/front/topic/form')
		}, {
			path: ':id',
			name: 'FrontTopicDetail',
			meta: { title: '课题详情' },
			component: () => import('@/views/front/topic/detail')
		}]
	}, {
		path: 'experiment',
		name: 'FrontExperiment',
		redirect: '/front/experiment/',
		meta: { title: '实验申请' },
		component: () => import('@/views/front/experiment/index'),
		children: [{
			path: '',
			name: 'FrontExperimentList',
			component: () => import('@/views/front/experiment/list')
		}, {
			path: 'form',
			name: 'FrontExperimentForm',
			meta: { title: '实验表单' },
			component: () => import('@/views/front/experiment/form')
		}, {
			path: ':id',
			name: 'FrontExperimentDetail',
			meta: { title: '实验详情' },
			component: () => import('@/views/front/experiment/detail')
		}]
	}, {
		path: 'feedback',
		name: 'FrontFeedback',
		meta: { title: '实验反馈' },
		component: () => import('@/views/front/feedback/index')
	}, {
		path: 'achievement',
		name: 'FrontAchievement',
		redirect: '/front/achievement/',
		meta: { title: '成果提交' },
		component: () => import('@/views/front/achievement/index'),
		children: [{
			path: '',
			name: 'FrontAchievementList',
			component: () => import('@/views/front/achievement/list')
		}, {
			path: 'form',
			name: 'FrontAchievementForm',
			meta: { title: '成果表单' },
			component: () => import('@/views/front/achievement/form')
		}, {
			path: ':id',
			name: 'FrontAchievementDetail',
			meta: { title: '成果详情' },
			component: () => import('@/views/front/achievement/detail')
		}]
	}, {
		path: 'notice',
		name: 'FrontNotice',
		redirect: '/front/notice/',
		meta: { title: '通知公告' },
		component: () => import('@/views/front/notice/index'),
		children: [{
			path: '',
			name: 'FrontNoticeList',
			component: () => import('@/views/front/notice/list')
		}, {
			path: '/front/notice/:id',
			name: 'FrontNoticeDetail',
			meta: { title: '详情' },
			component: () => import('@/views/front/notice/detail')
		}]
	}, {
		path: 'personal',
		name: 'FrontPersonal',
		meta: { title: '个人中心' },
		component: () => import('@/views/front/personal/index')
	}]
}]